#!/bin/bash
###############################
#测试脚本
###############################

set -x
function check(){
  version=`jemalloc-config --version`  
  if [[ $version =~ 5.3.0 ]];then 
    echo "RETURN SUCCESS"
    return
  else
    echo "RETURN FAILED" 
  fi
}

# DO NOT CHANGE THE MAIN FUNCTION
function main()
{
  ret=$(check)
  if [[ $ret == *'RETURN SUCCESS' ]]; then
    echo "test scripts success"
  else
    echo "test scripts failed"
  fi
}
main

